<?php


class Form_Login extends Zend_Form {
	public function __construct($options = null) {
		parent::__construct($options);
		
		$this->setName('login');
		$view = Zend_Layout::getMvcInstance()->getView();      
		$username = new Zend_Form_Element_Text('username');
		$username->setLabel($view->translate->_('Username').':')
				 ->setRequired();
				 
	 	$password = new Zend_Form_Element_Password('password');
		$password->setLabel($view->translate->_('Password').':')
				 ->setRequired(true);
		 
		$submit = new Zend_Form_Element_Submit('login');
		$submit->setLabel($view->translate->_('Login'));
		 
		$this->addElements(array($username, $password, $submit));
		
		$this->setMethod('post');
		$this->setAction(Zend_Controller_Front::getInstance()->getBaseUrl(). '/authentication/login');

	}		
	
	
	
}